module.exports = app=>{ 
    // 单独分离出的路由
    const {router,controller,middleware} = app
    router.get('/api/home',controller.home.index.index)

    // jwt认证
    const jwt = middleware.jwtCheck(app.config.jwt);

    // 用户模块
    router.post('/api/home/about',jwt,controller.admin.user.about)
    router.post('/api/home/update',jwt,controller.admin.user.update)

}